home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / networking / pccardnetworksample / myportcalls.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.3 KB  |  38 lines

  1. /*
  2.     File:        MyPortCalls.h
  3.  
  4.     Contains:    Generic calls for working with the MyPortScanner sample, to allow a PC Card Enabler
  5.                 to force an OT port deregistration
  6.  
  7.     Written by: Rich Kubota    
  8.  
  9.     Copyright:    Copyright © 1999 by Apple Computer, Inc., All Rights Reserved.
  10.  
  11.                 You may incorporate this Apple sample source code into your program(s) without
  12.                 restriction. This Apple sample source code has been provided "AS IS" and the
  13.                 responsibility for its operation is yours. You are not permitted to redistribute
  14.                 this Apple sample source code as "Apple sample source code" after having made
  15.                 changes. If you're going to re-distribute the source, we require that you make
  16.                 it clear in the source that the code was descended from Apple sample source
  17.                 code, but that you've made changes.
  18.  
  19.     Change History (most recent first):
  20.                 8/16/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  21.                 
  22.  
  23. */
  24. #pragma once
  25.  
  26. #define    kVersionMajor    1
  27. #define kVersionMinor    0
  28. #define kVersionStage    developStage
  29. #define kVersionNonRel    0
  30.  
  31. extern OSStatus CreatePortProperties(const RegEntryID *cardRef);
  32. extern OSStatus MyAddDeviceProperties(const RegEntryID *cardRef, UInt32 device);
  33. extern void     CallPortScanner(void);
  34. extern void        EnablerOfflinePort(const RegEntryID *cardRef);
  35. static Boolean IsOpenTransportPresent(void);  
  36.  
  37. const unsigned char gDriverName[] = kDriverName;
  38.